import Vue from 'vue';
import VueRouter from 'vue-router';
import HomeView from '../views/layout/HomeView.vue';
import MyLogin from '../views/layout/MyLogin.vue';

Vue.use(VueRouter);

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView,
    children:[]
  },
  {
    path: '/MyLogin',
    name: 'MyLogin',
    component: MyLogin,
  },
  {
    path: '/about',
    //name: 'about', 
    component: () => import('../views/AboutView.vue'),
  },
];

const router = new VueRouter({
  routes,
});

export default router;
